package com.example.bbs.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

public class ThreadPoolUtil {

    //执行定时任务的线程池
    public static volatile ScheduledExecutorService scheduledThreadPool = Executors.newScheduledThreadPool(5);
    //执行异步任务的线程池
    public static volatile ExecutorService executorService = Executors.newFixedThreadPool(5);
}
